package com.fengze.business.service.impl;

import java.util.List;
import com.fengze.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fengze.business.mapper.RemindInfoMapper;
import com.fengze.business.domain.RemindInfo;
import com.fengze.business.service.IRemindInfoService;

/**
 * 提醒信息Service业务层处理
 * 
 * @author lug
 * @date 2024-02-23
 */
@Service
public class RemindInfoServiceImpl implements IRemindInfoService 
{
    @Autowired
    private RemindInfoMapper remindInfoMapper;

    /**
     * 查询提醒信息
     * 
     * @param id 提醒信息主键
     * @return 提醒信息
     */
    @Override
    public RemindInfo selectRemindInfoById(Long id)
    {
        return remindInfoMapper.selectRemindInfoById(id);
    }

    /**
     * 查询提醒信息列表
     * 
     * @param remindInfo 提醒信息
     * @return 提醒信息
     */
    @Override
    public List<RemindInfo> selectRemindInfoList(RemindInfo remindInfo)
    {
        return remindInfoMapper.selectRemindInfoList(remindInfo);
    }

    /**
     * 新增提醒信息
     * 
     * @param remindInfo 提醒信息
     * @return 结果
     */
    @Override
    public int insertRemindInfo(RemindInfo remindInfo)
    {
        remindInfo.setCreateTime(DateUtils.getNowDate());
        return remindInfoMapper.insertRemindInfo(remindInfo);
    }

    /**
     * 修改提醒信息
     * 
     * @param remindInfo 提醒信息
     * @return 结果
     */
    @Override
    public int updateRemindInfo(RemindInfo remindInfo)
    {
        return remindInfoMapper.updateRemindInfo(remindInfo);
    }

    /**
     * 批量删除提醒信息
     * 
     * @param ids 需要删除的提醒信息主键
     * @return 结果
     */
    @Override
    public int deleteRemindInfoByIds(Long[] ids)
    {
        return remindInfoMapper.deleteRemindInfoByIds(ids);
    }

    /**
     * 删除提醒信息信息
     * 
     * @param id 提醒信息主键
     * @return 结果
     */
    @Override
    public int deleteRemindInfoById(Long id)
    {
        return remindInfoMapper.deleteRemindInfoById(id);
    }
}
